﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WxSDK.Model
{
    [WxPetaPoco.TableName("wx_member")]
    [WxPetaPoco.PrimaryKey("Id")]
    public class wx_member
    {
        #region Model
        private int _id;
        private string _username;
        private string _usericon;
        private string _userpwd;
        private string _realname;
        private string _useremail;
        private int _userlevel;
        private int _usertype;
        private int _states;
        private DateTime _addtime = DateTime.Now;
        private string _wxid;
        private string _appid;
        private string _mchid;
        private string _appkey;
        private string _appsecret;
        private string _token;
        private string _redirect_url;
        private string _notify_url;
        private string _serverip;
        private string _certpath;
        private string _cururl;
        private int _curl_timeout = 30;
        private string _accesstoken;
        private DateTime _refreshtime = DateTime.Now;
        private int _belongfield = 0;

        private int _study = 0;
        private int _autoreplay = 0;
        private int _autoreplaytype;
        private string _autoreplaycont;

        private int _subreplay = 0;
        private int _subreplaytype;
        private string _subreplaycont;
        private int _qrcodeexp = 604800;
        private string _syskey;
        private string _sysmenukey;
        private string _sysmenu;
        private string _defaultredirect;


        /// <summary>
        /// 微信公众平台账号
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 账号名称
        /// </summary>
        public string UserName
        {
            set { _username = value; }
            get { return _username; }
        }
        /// <summary>
        /// 账号头像
        /// </summary>
        public string UserIcon
        {
            set { _usericon = value; }
            get { return _usericon; }
        }
        /// <summary>
        /// 账号密码 
        /// </summary>
        public string UserPwd
        {
            set { _userpwd = value; }
            get { return _userpwd; }
        }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName
        {
            set { _realname = value; }
            get { return _realname; }
        }
        /// <summary>
        /// 用户邮箱
        /// </summary>
        public string UserEmail
        {
            set { _useremail = value; }
            get { return _useremail; }
        }
        /// <summary>
        /// 用户等级
        /// </summary>
        public int UserLevel
        {
            set { _userlevel = value; }
            get { return _userlevel; }
        }
        /// <summary>
        /// 用户类型
        /// </summary>
        public int UserType
        {
            set { _usertype = value; }
            get { return _usertype; }
        }
        /// <summary>
        /// 是否锁定
        /// </summary>
        public int States
        {
            set { _states = value; }
            get { return _states; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime
        {
            set { _addtime = value; }
            get { return _addtime; }
        }
        /// <summary>
        /// 微信号码 gh_cb78f5f8f7ed
        /// </summary>
        public string WXID
        {
            set { _wxid = value; }
            get { return _wxid; }
        }
        /// <summary>
        /// APPID 应用ID
        /// </summary>
        public string APPID
        {
            set { _appid = value; }
            get { return _appid; }
        }
        /// <summary>
        /// MCHID 受理商ID，身份标识
        /// </summary>
        public string MCHID
        {
            set { _mchid = value; }
            get { return _mchid; }
        }
        /// <summary>
        /// KEY 商户支付密钥Key。审核通过后，在微信发送的邮件中查看
        /// </summary>
        public string APPKEY
        {
            set { _appkey = value; }
            get { return _appkey; }
        }
        /// <summary>
        /// APPSECRET 应用密钥 接口中获取openid，审核后在公众平台开启开发模式后可查看
        /// </summary>
        public string APPSECRET
        {
            set { _appsecret = value; }
            get { return _appsecret; }
        }
        /// <summary>
        /// TOKEN 自动生成的Token
        /// </summary>
        public string TOKEN
        {
            set { _token = value; }
            get { return _token; }
        }
        /// <summary>
        /// 获取access_token过程中的跳转uri
        /// </summary>
        public string REDIRECT_URL
        {
            set { _redirect_url = value; }
            get { return _redirect_url; }
        }
        /// <summary>
        /// 异步通知url，商户根据实际开发过程设定
        /// </summary>
        public string NOTIFY_URL
        {
            set { _notify_url = value; }
            get { return _notify_url; }
        }
        /// <summary>
        /// 服务器IP
        /// </summary>
        public string ServerIP
        {
            set { _serverip = value; }
            get { return _serverip; }
        }
        /// <summary>
        /// 证书路径  红包需要
        /// </summary>
        public string CertPath
        {
            set { _certpath = value; }
            get { return _certpath; }
        }
        /// <summary>
        /// 当前WebUrl 发送出去的链接均在此域名下
        /// </summary>
        public string CurUrl
        {
            set { _cururl = value; }
            get { return _cururl; }
        }
        /// <summary>
        /// 请求过期时间
        /// </summary>
        public int CURL_TIMEOUT
        {
            set { _curl_timeout = value; }
            get { return _curl_timeout; }
        }
        /// <summary>
        /// AccessToken
        /// </summary>
        public string AccessToken
        {
            set { _accesstoken = value; }
            get { return _accesstoken; }
        }
        /// <summary>
        /// AccessToken的最后获取时间
        /// </summary>
        public DateTime RefreshTime
        {
            set { _refreshtime = value; }
            get { return _refreshtime; }
        }
        /// <summary>
        /// 预留接口ID
        /// </summary>
        public int BelongField
        {
            set { _belongfield = value; }
            get { return _belongfield; }
        }


        /// <summary>
        /// 是否开启学习功能
        /// </summary>
        public int Study
        {
            set { _study = value; }
            get { return _study; }
        }
        /// <summary>
        /// 当前用户是否有自动回复
        /// </summary>
        public int AutoReplay
        {
            set { _autoreplay = value; }
            get { return _autoreplay; }
        }
        /// <summary>
        /// 若没有匹配的自动回复 回复类型  1文字回复  2图片回复  3语音回复 4视频回复 5回复图文消息
        /// </summary>
        public int AutoReplayType
        {
            set { _autoreplaytype = value; }
            get { return _autoreplaytype; }
        }
        /// <summary>
        /// 若没有匹配的自动回复 回复内容
        /// </summary>
        public string AutoReplayCont
        {
            set { _autoreplaycont = value; }
            get { return _autoreplaycont; }
        }
        /// <summary>
        /// 是否开启关注回复
        /// </summary>
        public int SubReplay
        {
            set { _subreplay = value; }
            get { return _subreplay; }
        }
        /// <summary>
        /// 关注回复类型  1文字回复  2图片回复  3语音回复 4视频回复 5回复图文消息
        /// </summary>
        public int SubReplayType
        {
            set { _subreplaytype = value; }
            get { return _subreplaytype; }
        }
        /// <summary>
        /// 关注回复的内容
        /// </summary>
        public string SubReplayCont
        {
            set { _subreplaycont = value; }
            get { return _subreplaycont; }
        }
        /// <summary>
        /// 控制全局临时生成二维码的有效期 默认一周  2592000为30天 604800为一周
        /// </summary>
        public int QRCodeExp
        {
            set { _qrcodeexp = value; }
            get { return _qrcodeexp; }
        }
        /// <summary>
        /// 系统关键字
        /// </summary>
        public string SysKey
        {
            set { _syskey = value; }
            get { return _syskey; }
        }
        /// <summary>
        /// 系统菜单关键字
        /// </summary>
        public string SysMenuKey
        {
            set { _sysmenukey = value; }
            get { return _sysmenukey; }
        }
        /// <summary>
        /// 系统菜单内容
        /// </summary>
        public string SysMenu
        {
            set { _sysmenu = value; }
            get { return _sysmenu; }
        }
        /// <summary>
        /// 微信获取用户信息后的默认跳转页
        /// </summary>
        public string DefaultRedirect
        {
            set { _defaultredirect = value; }
            get { return _defaultredirect; }
        }

        #endregion Model
    }
}
